package com.doform.android.xianggucheng.bean.request_bean;

import com.doform.android.xianggucheng.help.AppHelp;
import com.google.gson.Gson;

/**
 * 作者 Y_MS
 * Created by ${APEN} on 2017-08-05.
 * GitHub：https://github.com/cxydxpx
 */

public class ReqAddInLibrary {

    /**
     * _savetype 	是 	string 	操作类型：新增：add ； 编辑：update
     * id 	否 	string 	采购入库ID
     * guid 	否 	string 	采购入库GUID
     * whid 	是 	string 	仓库id
     * whname 	是 	string 	仓库name
     * chsupplierid 	是 	string 	结算供应商ID
     * chsuppliername 	是 	string 	结算供应商name
     * buydate 	是 	string 	采购日期
     * apname 	是 	string 	采购人
     * money 	否 	string 	采购单合计费用
     * remark 	否 	string 	备注说明
     * apimg 	否 	string 	申请表图片ID
     * apimgfile 	否 	string 	申请表文件
     * cgimg 	否 	string 	入库文件图片ID
     * method 	是 	string 	结算方式
     * state 	是 	string 	｛’状态{-9:已删除的,1:新采购,5:已入库,7:已回款}’｝
     * debug 	是 	string 	开启：true
     */

    private String _savetype = "add";
    private boolean debug = AppHelp.getInstance().Debug;
    private String state = "1";

    private String whid;
    private String whname;
    private String buydate;
    private String apname;
    private String method;
    private String remark;


    public ReqAddInLibrary(String mClearTypeId, String mLibraryId, String mLibraryName, String mTime, String mPerson, String mRemark) {
        this.method = mClearTypeId;
        this.whid = mLibraryId;
        this.whname = mLibraryName;
        this.buydate = mTime;
        this.apname = mPerson;
        this.remark = mRemark;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
